package com.ggb.reactive.constant

/**
 * 订单状态 1待付款 2待接单 3已接单 4派送中 5已完成 6已取消
 */
enum class OrderStatus : StatusEnum {
    PENDING_PAYMENT,
    TO_BE_CONFIRMED,
    CONFIRMED,
    DELIVERY_IN_PROGRESS,
    COMPLETED,
    CANCELLED;

    override fun getStatus() = this.ordinal + 1
}

/**
 * 支付状态 0未支付 1已支付 2退款
 */
enum class OrderPayStatus : StatusEnum {
    UN_PAID,
    PAID,
    REFUND;
}
